<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2022/4/16
  Time: 11:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    pageContext.setAttribute("APP_PATH", request.getContextPath());
%>
<html>
<head>
    <title>Title</title>
    <link type="text/css" rel="styleSheet" href="${APP_PATH}/dist/css/bootstrap.css"/>
    <script type="text/javascript" src="${APP_PATH}/dist/js/jquery-1.12.4.js"></script>
    <script type="text/javascript" src="${APP_PATH}/dist/js/bootstrap.min.js"></script>
</head>
<body>
<div class="clearfix"></div>
<div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
            <div class="x_title">
                <h2>新增APP基础信息 <i class="fa fa-user"></i><small>${devUserSession.devName}</small></h2>
                <div class="clearfix"></div>
            </div>
            <div class="x_content">
                <!-- <div class="item form-group">
                         <label class="control-label col-md-3 col-sm-3 col-xs-12" ></label>
                         <div class="col-md-6 col-sm-6 col-xs-12">
                           <form action="uploadlogo" class="dropzone" style="height:100px;">
                           </form>
                      <div class="clearfix"></div>
                   </div>
                 </div> -->
                <div class="clearfix"></div>
                <form class="form-horizontal form-label-left" action="appinfoaddsave" method="post" enctype="multipart/form-data">
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">软件名称 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="softwareName" class="form-control col-md-7 col-xs-12"
                                   data-validate-length-range="20" data-validate-words="1" name="softwareName"  required="required"
                                   placeholder="请输入软件名称" type="text">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">APK名称 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="APKName" class="form-control col-md-7 col-xs-12"
                                   data-validate-length-range="20" data-validate-words="1" name="APKName"   required="required"
                                   placeholder="请输入APK名称" type="text">
                        </div>
                    </div>

                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">支持ROM <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="supportROM" class="form-control col-md-7 col-xs-12" name="supportROM"
                                   data-validate-length-range="20" data-validate-words="1"   required="required"
                                   placeholder="请输入支持的ROM" type="text">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">界面语言 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="interfaceLanguage" class="form-control col-md-7 col-xs-12"
                                   data-validate-length-range="20" data-validate-words="1" name="interfaceLanguage"   required="required"
                                   placeholder="请输入软件支持的界面语言" type="text">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="number">软件大小 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="number" id="softwareSize" name="softwareSize"   required="required" onkeyup="value=value.replace(/[^\d]/g,'')"
                                   data-validate-minmax="10,500"  placeholder="请输入软件大小，单位为Mb" class="form-control col-md-7 col-xs-12">
                        </div>
                    </div>

                    <div class="item form-group">
                        <%--@declare id="number"--%><label class="control-label col-md-3 col-sm-3 col-xs-12" for="number">下载次数 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="number" id="downloads" name="downloads"   required="required"
                                   data-validate-minmax="10,500"  placeholder="请输入下载次数" class="form-control col-md-7 col-xs-12">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="floatFormId">所属平台</label>
                        <select name="categoryLevel1" id="floatFormId" class="form-control">
                            <option value="pls">-- 请选择 --</option>
                            <option value="1">1 (手机)</option>
                            <option value="2">2 (平板)</option>
                            <option value="3">3 (通用)</option>
                        </select>
                    </div>

                    <div class="form-group">
                        <label for="categoryLevel1">一级分类</label>
                        <select name="categoryLevel1" id="categoryLevel1" class="form-control">
                            <option value="pls">-- 请选择 --</option>
                            <option value="1">游戏</option>
                            <option value="2">应用</option>
                        </select>
                    </div>

                    <div class="form-group">
                        <label for="categoryLevel2">二级分类</label>
                        <select name="categoryLevel2" id="categoryLevel2" class="form-control">
                            <option value="pls">-- 请选择 --</option>
                            <option value="3">休闲益智</option>
                            <option value="4">动作冒险</option>
                            <option value="6">飞行射击</option>
                            <option value="7">视频播放</option>
                            <option value="8">通讯社交</option>
                            <option value="15">购物优惠</option>
                            <option value="16">效率办公</option>
                            <option value="38">棋牌天地</option>
                        </select>
                    </div>

                    <div class="form-group">
                        <label for="categoryLevel3">三级分类</label>
                        <select name="categoryLevel3" id="categoryLevel3" class="form-control">
                            <option value="pls">-- 请选择 --</option>
                            <option value="18">儿童</option>
                            <option value="19">休闲</option>
                            <option value="20">捕鱼</option>
                            <option value="21">跑酷</option>
                            <option value="22">格斗</option>
                            <option value="23">横板</option>
                            <option value="24">模拟</option>
                            <option value="25">打飞</option>
                            <option value="26">射击</option>
                            <option value="27">在线</option>
                            <option value="28">短视频</option>
                            <option value="29">聊天</option>
                            <option value="30">通话</option>
                            <option value="31">社区</option>
                            <option value="32">商城</option>
                            <option value="33">海淘</option>
                            <option value="34">二手</option>
                            <option value="35">办公</option>
                            <option value="36">网盘</option>
                            <option value="37">商家</option>
                            <option value="39">斗地</option>
                            <option value="40">麻将</option>
                            <option value="41">单机</option>
                            <option value="42">棋类</option>
                        </select>
                    </div>

                    <div class="form-group">
                        <label for="APPstatus">APP状态</label>
                        <select name="APPstatus" id="APPstatus" class="form-control">
                            <option value="pls">-- 请选择 --</option>
                            <option value="1">1 (待审核)</option>
                            <option value="2">2 (审核通过)</option>
                            <option value="3">3 (审核未通过)</option>
                            <option value="4">4 (已上架)</option>
                            <option value="5">5 (已下架)</option>
                        </select>
                    </div>
                    <div class="item form-group">
                        <%--@declare id="textarea"--%><label class="control-label col-md-3 col-sm-3 col-xs-12" for="textarea">应用简介 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
              <textarea id="appInfo" name="appInfo"     required="required"
                        placeholder="请输入本软件的相关信息，本信息作为软件的详细信息进行软件的介绍。" class="form-control col-md-7 col-xs-12"></textarea>
                        </div>
                    </div>
                    <div class="item form-group">
                        <%--@declare id="name"--%><label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">LOGO图片 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="file" class="form-control col-md-7 col-xs-12" name="a_logoPicPath"  required="required" id="a_logoPicPath"/>
                            ${fileUploadError }
                        </div>
                    </div>
                    <div class="ln_solid"></div>
                    <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                            <button id="send" type="submit" class="btn btn-success" ><a href="/add1">保存</button>
                            <button type="button" class="btn btn-primary" id="back" href="appstart.jsp">返回</button>
                            <br/><br/>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<script src="../../dist/js/jquery-1.12.4.js"></script>

</body>
</html>
